Test Series - java script

Test Number 51/92

Q: How do we define the term Thread?
A. Device that controls input
B. Variable that controls movement
C. Controlled execution of applications
D. Device that controls input & Variable that controls movement
Solution: Threads are sequential units of controlled execution for applications. A thread of execution is the smallest sequence of programmed instructions that can be managed independently by a scheduler, which is typically a part of the operating system.
Q: What does the browser do to set up a TCP/IP connection?
A. TCP one-way handshake
B. TCP two-way handshake
C. TCP three-way handshake
D. TCP four-way handshake
Solution: A three-way handshake is a method used in a TCP/IP network to create a connection between a local host/client and server. It is a three-step method that requires both the client and server to exchange SYN and ACK (acknowledgment) packets before actual data communication begins.
Q: What does the handshake pass between the browser and the remote server?
A. Synchronize
B. Accept
C. Reject
D. Decline
Solution: A three-way handshake is a method used in a TCP/IP network to create a connection between a local host/client and server. The handshake consists of a Synchronize, Synchronize-Acknowledge, and Acknowledge message to be passed between the browser and the remote server.
Q: How does the handshake help the server?
A. Acknowledge
B. Accept the attempt
C. Both Acknowledge and Accept the attempt
D. Asynchronize
Solution: The handshake allows the server to acknowledge and accept the attempt. The handshake consists of a Synchronize, Synchronize-Acknowledge, and Acknowledge message to be passed between the browser and the remote server.
Q: What is the purpose of the transport layer?
A. TCP Communication takes place
B. UDP Communication takes place
C. Both TCP and UDP Communication takes place
D. IP communication
Solution: The transport layer is the layer in the open system interconnection (OSI) model responsible for end-to-end communication over a network. The Transport layer is where our TCP (or UDP) communication takes place.
Q: What does the status code 200 indicate?
A. Error in request
B. Error in response
C. Error in server
D. Successful
Solution: The status code 200 indicates a successful response from the server. A 400 status code represents a bad request.
Q: What does the status code 500 indicate?
A. Error in request
B. Error in response
C. Error in server
D. Successful
Solution: The 500 status code, or Internal Server Error, means that server cannot process the request for an unknown reason. Sometimes this code will appear when more specific 5xx errors are more appropriate.
Q: What does the application layer handle?
A. Top-level communication
B. Bottom-level communication
C. Both Top-level and Bottom-level communication
D. Middle-level communication
Solution: An application layer is an abstraction layer that specifies the shared communications protocols and interface methods used by hosts in a communications network. The Application layer handles the top-level communication that the client and servers use, like HTTP and SMTP for email clients.
Q: Which status code indicates that the server could not find the resource requested?
A. 200
B. 404
C. 500
D. 566
Solution: The HTTP 404, 404 Not Found, and 404 error message is a Hypertext Transfer Protocol (HTTP) standard response code, in computer network communications, to indicate that the client was able to communicate with a given server, but the server could not find what was requested.
Q: What is the maximum size of an IP packet for IPv4 or IPv6?
A. 65540
B. 65535
C. 65577
D. 67544
Solution: Internet Protocol version 4 (IPv4) is the fourth version of the Internet Protocol (IP). IPv6 is the most recent version of Internet Protocol. The maximum size of an IP packet for IPv4 or IPv6 is 65535.

You Have Score    /10